﻿using System;

using DevExpress.Xpo;

using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
using System.ComponentModel;
using DevExpress.ExpressApp;
using DevExpress.Data.Filtering;

namespace SpeedSCM.Module
{
   [NavigationItem("资金管理")]
    [ImageName("BO_Sale")]
    public class 现金费用单 : 单据
    {
        public 现金费用单(Session session)
            : base(session)
        {

        }
        protected override SeedType SeedType
        {
            get { return SeedType.现金费用单; }
        }
        private 费用类型 _费用类型;
        [Custom("Caption", "费用类型")]
        [RuleRequiredField(null,DefaultContexts.Save,"必须选择费用类型")]
        public 费用类型 费用类型
        {
            get { return _费用类型; }
            set { SetPropertyValue<费用类型>("费用类型", ref _费用类型, value); }
        }
        private decimal _金额;
        [Custom("Caption", "金额")]
        [RuleRequiredField]
        public decimal 金额
        {
            get { return _金额; }
            set { SetPropertyValue<decimal>("金额", ref _金额, value); }
        }
    }
}
